import axios from "axios"

const Api = {
    mmsUrl: "http://0.0.0.0:8080/MMS/Api",
    imsUrl: "http://0.0.0.0:8080/IMS/Api",
    languageList(){
        return `${this.imsUrl}/Localization/list.json`
    },
    languageStrings(langCode) {
        return `${this.imsUrl}/Localization/${langCode}/strings/strings.json`
    }
}

const instance = axios.create({
    timeout: 3000,
})

export {Api, instance as AxIosInstance}